package com.ruoyi.Student_management.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生对象 tb_student
 *
 * @author ruoyi
 * @date 2023-12-26
 */
public class TbStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 年级id */
    @Excel(name = "年级id")
    private String gradeId;

    /** 班级id */
    @Excel(name = "班级id")
    private String classId;


    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String name;

    /** 性   别 */
    @Excel(name = "性   别")
    private Long sex;

    /** 民   族 */
    @Excel(name = "民   族")
    private String nationality;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 生源地 */
    @Excel(name = "生源地")
    private String sourceStudents;

    /** 县   区 */
    @Excel(name = "县   区")
    private String countyDistrict;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 照片 */
    @Excel(name = "照片")
    private String picture;

    private String className;
    private String gradeName;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setGradeId(String gradeId)
    {
        this.gradeId = gradeId;
    }

    public String getGradeId()
    {
        return gradeId;
    }
    public void setClassId(String classId)
    {
        this.classId = classId;
    }

    public String getClassId()
    {
        return classId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSex(Long sex)
    {
        this.sex = sex;
    }

    public Long getSex()
    {
        return sex;
    }
    public void setNationality(String nationality)
    {
        this.nationality = nationality;
    }

    public String getNationality()
    {
        return nationality;
    }
    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }
    public void setSourceStudents(String sourceStudents)
    {
        this.sourceStudents = sourceStudents;
    }

    public String getSourceStudents()
    {
        return sourceStudents;
    }
    public void setCountyDistrict(String countyDistrict)
    {
        this.countyDistrict = countyDistrict;
    }

    public String getCountyDistrict()
    {
        return countyDistrict;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gradeId", getGradeId())
            .append("classId", getClassId())
            .append("name", getName())
            .append("sex", getSex())
            .append("nationality", getNationality())
            .append("idCard", getIdCard())
            .append("sourceStudents", getSourceStudents())
            .append("countyDistrict", getCountyDistrict())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("picture", getPicture())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("gradeName",getGradeName())
            .append("className",getClassName())
            .toString();
    }
}
